package com.dsg.service.apply;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.apply.DsgApplyDdaSub;

import javax.servlet.http.HttpServletResponse;
import java.io.File;

/**
 * <p>
 * DDA設立記錄子表 服务类
 * </p>
 *
 * @author system
 * @since 2020-10-06
 */
public interface IDsgApplyDdaSubService extends IService<DsgApplyDdaSub> {

    /**
     * 更新狀態
     *
     * @param dsgApplyDdaSub
     */
    void updateDdaStatus(DsgApplyDdaSub dsgApplyDdaSub);

    /**
     * 落銀行
     *
     * @param response
     * @param id
     * @return
     * @throws Exception
     */
    void downloadFile(HttpServletResponse response, String id) throws Exception;

    /**
     * 上載
     * @param file
     * @param dsgApplyDdaSub
     * @throws Exception
     */
    void importFile(File file, DsgApplyDdaSub dsgApplyDdaSub) throws Exception;
}
